<!-- PAGE CONTENT WRAPPER -->
<div class="page-content-wrap">

    <div class="row">
        <div class="col-md-12">

            <div class="panel panel-default tabs">
                <ul class="nav nav-tabs nohref" role="tablist">
                    <li style="min-width: 150px;" ng-class="{'active':'tabAdmin' == currentTabId}" ng-click="selectTab('tabAdmin')">
                        <a href="javascript:void(0)" role="tab" data-toggle="tab">{{'管理员' | dyLanguage}}</a>
                    </li>
                    <li style="min-width: 150px;" ng-class="{'active':'tabGuest' == currentTabId}" ng-click="selectTab('tabGuest')">
                        <a href="javascript:void(0)" role="tab" data-toggle="tab">{{'来宾' | dyLanguage}}</a>
                    </li>
                </ul>

                <div class="panel-body tab-content">
                    <div class="tab-pane" ng-class="{'active':'tabAdmin' == currentTabId}" id="tabAdmin">
                        <div class="panel panel-default">
                            <div class="panel-body table-responsive">
                                <div>
                                    <div class="panel-footer" style="text-align: right;">
                                        <h3 class="panel-title" style="float: left;"><strong>{{'当前页面的操作' | dyLanguage}}</strong></h3>
                                        <button class="btn btn-info" ng-click="add('ROLE_COMPANY_SERVICE')"><i class="fa fa-plus"></i>{{'新增' | dyLanguage}}</button>
                                    </div>
                                    <div class="panel-body table-responsive">
                                        <p style="float: left;">{{'本次查询共查询到' | dyLanguage}}{{pagination.length}}{{'条记录。' | dyLanguage}}</p>
                                        <cm-pagination ng-model="paginationAdmin" ng-show="paginationAdmin.length > 0"></cm-pagination>
                                        <table class="table table-striped table-bordered">
                                            <thead>
                                            <tr>
                                                <th>{{'登录账号' | dyLanguage}}</th>
                                                <th>{{'创建时间' | dyLanguage}}</th>
                                                <th class="optionTh"></th>
                                            </tr>
                                            </thead>
                                            <tbody>
                                            <tr ng-repeat="admin in admins.datas">
                                                <td>{{admin.userName}}</td>
                                                <td>{{admin.createDate.toDate()}}</td>
                                                <td>
                                                    <a href="javascript:void(0)" ng-click="unActiveUser(admin)">{{'移除' | dyLanguage}}</a>
                                                    &nbsp;|&nbsp;
                                                    <a href="javascript:void(0)" ng-click="changePassword(admin)">{{'修改密码' | dyLanguage}}</a>
                                                </td>
                                            </tr>
                                            </tbody>
                                        </table>
                                        <cm-pagination ng-model="paginationAdmin" ng-show="paginationAdmin.length > 0"></cm-pagination>
                                    </div>
                                    <div class="panel-footer" style="text-align: right;">
                                        <h3 class="panel-title" style="float: left;"><strong>{{'当前页面的操作' | dyLanguage}}</strong></h3>
                                        <button class="btn btn-info" ng-click="add('ROLE_COMPANY_SERVICE')"><i class="fa fa-plus"></i>{{'新增' | dyLanguage}}</button>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>

                    <div class="tab-pane" ng-class="{'active':'tabGuest' == currentTabId}" id="tabGuest">
                        <div class="panel panel-default">
                            <div class="panel-body table-responsive">
                                <div>
                                    <div class="panel-footer" style="text-align: right;">
                                        <h3 class="panel-title" style="float: left;"><strong>{{'当前页面的操作' | dyLanguage}}</strong></h3>
                                        <button class="btn btn-info" ng-click="add('ROLE_COMPANY_GUEST')"><i class="fa fa-plus"></i>{{'新增' | dyLanguage}}</button>
                                    </div>
                                    <div class="panel-body table-responsive">
                                        <p style="float: left;">{{'本次查询共查询到' | dyLanguage}}{{pagination.length}}{{'条记录。' | dyLanguage}}</p>
                                        <cm-pagination ng-model="paginationGuest" ng-show="paginationGuest.length > 0"></cm-pagination>
                                        <table class="table table-striped table-bordered">
                                            <thead>
                                            <tr>
                                                <th>{{'登录账号' | dyLanguage}}</th>
                                                <th>{{'创建时间' | dyLanguage}}</th>
                                                <th class="optionTh"></th>
                                            </tr>
                                            </thead>
                                            <tbody>
                                            <tr ng-repeat="guest in guests.datas">
                                                <td>{{guest.userName}}</td>
                                                <td>{{guest.createDate.toDate()}}</td>
                                                <td>
                                                    <a href="javascript:void(0)" ng-click="unActiveUser(guest)">{{'移除' | dyLanguage}}</a>
                                                    &nbsp;|&nbsp;
                                                    <a href="javascript:void(0)" ng-click="changePassword(guest)">{{'修改密码' | dyLanguage}}</a>
                                                </td>
                                            </tr>
                                            </tbody>
                                        </table>
                                        <cm-pagination ng-model="paginationGuest" ng-show="paginationGuest.length > 0"></cm-pagination>
                                    </div>
                                    <div class="panel-footer" style="text-align: right;">
                                        <h3 class="panel-title" style="float: left;"><strong>{{'当前页面的操作' | dyLanguage}}</strong></h3>
                                        <button class="btn btn-info" ng-click="add('ROLE_COMPANY_GUEST')"><i class="fa fa-plus"></i>{{'新增' | dyLanguage}}</button>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>

    <!-- END PAGE CONTENT WRAPPER -->
</div>
